package session.stateless.CRM;

import entity.CRM.ProductPrice;
import javaclass.ProductType;
import java.util.List;
import javax.ejb.Local;

@Local
public interface ProductPriceBeanLocal {
    
    public ProductPrice createProductPrice(ProductType productType, Long lowerLimit, Long higherLimit, Double price);
    public void updateProductPrice(Long productId,ProductType productType, Long lowerLimit, Long higherLimit, Double price);
    public void deleteProductPrice(Long productId);
    
    public ProductPrice lookupRange(ProductType productType, Long quantity);
    public boolean checkConflict(Long productId, ProductType productType, Long lowerLimit, Long higherLimit);

    
    public List<ProductPrice> getProductPriceList();
    public List<ProductPrice> getProductPricesByType(ProductType productType);
    
    public ProductPrice getFirstProductPriceA();
    public ProductPrice getFirstProductPriceB();
    public ProductPrice getFirstProductPriceC();
    public ProductPrice getFirstProductPriceD();
            
}
